JavaScript

{dialog.object}exportChart Method

IN THIS PAGE

Syntax

{dialog.object}.exportChart(settingsObject);

Arguments

settingsObject

The chart to export.

Description

Exports one or more charts to a PDF or RTF file and then downloads the file to the client computer.

Discussion

chartId

A Javascript array of chart Ids to be exported

clientSideFilename

The suggested filename of the download file

format

Either 'pdf' or 'rtf

papersize

(optional) paper size (only supported for PDF)

orientation

(optional) orientation (only supported for PDF)

Example

export chart C1 and C3 as a PDF file
var settings = {};
settings.chartId = 'C1','C3';
settings.format = 'pdf';
settings.clientSideFilename = 'mycharts';
{dialog.object}.exportChart(settings);

See Also